package com.woniu.service.impl;

import com.woniu.outlet.dao.ProgressMapper;
import com.woniu.outlet.po.Progress;
import com.woniu.outlet.po.ProgressExample;
import com.woniu.service.ProgressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProgressServiceImpl implements ProgressService {
    @Autowired
    private ProgressMapper progressMapper;
    @Override
    public List<Progress> getProgressByPlanId (Long planId) {
        ProgressExample progressExample = new ProgressExample();
        ProgressExample.Criteria criteria = progressExample.createCriteria();
        criteria.andProPlanIdEqualTo(planId);
        List<Progress> progressList = progressMapper.selectByExample(progressExample);
        return progressList;
    }
}
